package com.jic.manager.mapper;

import com.jic.manager.entity.CmsCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CMS分类
 * @author : 
 * @email : 
 * @since : 2020-03-04 11:59:27
 * @version : v1.0.0
 */
@Mapper
public interface  CmsCategoryMapper {

    long insert(CmsCategory cmsCategory);

    long delete(Long id);

    long update(CmsCategory cmsCategory);

    CmsCategory queryByPrimaryKey(Long id);

    List<CmsCategory> query(CmsCategory cmsCategory);

    List<CmsCategory> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("cmsCategory") CmsCategory cmsCategory);

    long queryPageCount(CmsCategory cmsCategory);
}